package com.zx.mes.upms.hyl.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.*;


/**
 * 
 * 
 * @author hyl
 * @email 632105841@qq.com
 * @date 2018-04-08 15:10:44
 */
@Table(name = "role")
public class Role implements Serializable {
	private static final long serialVersionUID = 1L;
	
	    //
    @Id
    private String id;
	
	    //
    @Column(name = "name")
    private String name;
	
	    //
    @Column(name = "seq")
    private Integer seq;
	
	    //
    @Column(name = "pid")
    private String pid;
	
	    //
    @Column(name = "remark")
    private String remark;

	@Transient
	private List<Tresource> resourceList = new ArrayList<>(30);

	@Transient
	private List<Menu> menuList = new ArrayList<>(20);

	/**
	 * 设置：
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public String getId() {
		return id;
	}
	/**
	 * 设置：
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：
	 */
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	/**
	 * 获取：
	 */
	public Integer getSeq() {
		return seq;
	}
	/**
	 * 设置：
	 */
	public void setPid(String pid) {
		this.pid = pid;
	}
	/**
	 * 获取：
	 */
	public String getPid() {
		return pid;
	}
	/**
	 * 设置：
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：
	 */
	public String getRemark() {
		return remark;
	}

	public List<Tresource> getResourceList() {
		return resourceList;
	}

	public void setResourceList(List<Tresource> resourceList) {
		this.resourceList = resourceList;
	}

	public List<Menu> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<Menu> menuList) {
		this.menuList = menuList;
	}
}
